<template>
	<view class="machineryleasing">
		<view @click="open">
			<contact-way  class="module"></contact-way>
			<my-relation :ref = "popup"></my-relation>
		</view>
		<view class="message">
			<view class="title">
				信息标题
				<view class="content">贵州遵义用轮挖</view>
			</view>
			<view class="title">
				发布时间
				<view class="content">2020-10-22 11:11:16</view>
			</view>
			<view class="title">
				所在地区
				<view class="content">贵州遵义</view>
			</view>
			<view class="title">
				机械类型
				<view class="content">用轮挖</view>
			</view>
			<view class="title">
				付款方式
				<view class="content">协商</view>
			</view>
			<view class="title">
				联系人
				<view class="content">先生</view>
			</view>

			<view class="title" style="align-items: center;">
				联系电话
				<view style="color: #F0AD4E;">13345678911</view>
				<view style="color: #FFFFFF;background: #F0AD4E;padding: 10rpx;border-radius: 10rpx;">查看完整号码</view>
			</view>
			<view class="explain">联系我时,请说明是在“鱼泡机械”上看到的</view>
		</view>
		<view class="message-details">
			<view class="title">详细信息</view>
			<view class="content">正文</view>
		</view>
		<view class="anti-fraud">
			<image src="../../static/警铃.png" mode=""></image>
			正文
			<span style="color: #F0AD4E;">立即举报</span>
		</view>
	</view>
</template>

<script>
	import contactWay from '../../components/contactway.vue';
	import myRelation from '../../components/relation.vue'
	export default {
		data() {
			return {
				show:true
			}
		},
		components: {
			'contactWay': contactWay,
			'myRelation': myRelation
		},
		methods:{
			open(){
				 this.$refs.undefined.$refs.popup.open()
			}
		}
	}
</script>

<style lang="scss">
	.machineryleasing {
		.module /deep/ .massage {
			color: #44BB00;
			margin-top: 20rpx;
		}
	}
</style>

<style lang="scss" scoped>
	.machineryleasing {
		background: #E5E5E5;

		.message {
			background: #FFFFFF;
			margin-bottom: 20rpx;

			.title {
				padding: 10rpx 20rpx 10rpx 0;
				margin-left: 20rpx;
				border-bottom: solid 1px #C8C9CC;
				display: flex;
				justify-content: space-between;
				font-weight: bold;
				font-size: 32rpx;

				.content {
					font-weight: normal;
				}
			}

			.explain {
				color: #ff0000;
				font-size: 32rpx;
				text-align: center;
				padding: 10rpx 0;
			}
		}
		.message-details{
			background: #FFFFFF;
			margin-bottom: 20rpx;
			.title{
				font-weight: bold;
				font-size: 32rpx;
				padding: 10rpx 20rpx 10rpx 0;
				margin-left: 20rpx;
				border-bottom: solid 1px #C8C9CC;
			}
			.content{
				padding: 10rpx 20rpx;
				font-size: 32rpx;
			}
		}
		.anti-fraud{
			font-size: 32rpx;
			padding: 10rpx 20rpx;
			background: #FFFFFF;
			display: flex;
			align-items: center;
			image{
				width: 40rpx;
				height: 40rpx;
			}
		}
	}
</style>
